<template>
	<view>
		<uv-notice-bar v-if="notice" :text="notice" :direction="direction"></uv-notice-bar>
	</view>
</template>

<script>
	export default {
		name: "sys-notice",
		data() {
			return {
				list: [],
				len: 0,
				direction: "column"
			};
		},
		computed: {
			notice() {
				if ((typeof this.$store.getters.getNotice) == 'string') {
					this.direction = "row"
					return this.$store.getters.getNotice;
				} else {
					this.direction = "column"
					return this.$store.getters.getNotice;
				}
			}
		},
		mounted() {

		},
		methods: {

		}
	}
</script>

<style>

</style>